package net.guerlab.smart.platform.user.web.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 登录记录
 *
 * @author guer
 */
@Data
public class LoginLogExcelExport {

    /**
     * 登录记录ID
     */
    @ExcelProperty(value = "登录记录ID", index = 0)
    private Long loginLogId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID", index = 1)
    private Long userId;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 2)
    private String name;

    /**
     * 登录身份
     */
    @ExcelProperty(value = "登录身份", index = 3)
    private String loginIdentity;

    /**
     * 登录方式
     */
    @ExcelProperty(value = "登录方式", index = 4)
    private String loginType;

    /**
     * 登录IP
     */
    @ExcelProperty(value = "登录IP", index = 5)
    private String loginIp;

    /**
     * 登录时间
     */
    @ExcelProperty(value = "登录时间", index = 6)
    private LocalDateTime loginTime;

    /**
     * 登录成功标志
     */
    @ExcelProperty(value = "登录成功", index = 7)
    private Boolean success;

    /**
     * 失败原因
     */
    @ExcelProperty(value = "失败原因", index = 8)
    private String reason;
}
